import Vue from 'vue';
import Vuex from 'vuex'
Vue.use(Vuex)

// 数据仓库
const screenData = {
	screenArr: [], //存储筛选出来的数据
}
const state  = {
	screenData
}
const mutations = { // 同步存储
	screenmuta(state, screenArr) { // 存储到数据仓库
		state.screenData = {
			screenArr
		}
	}
}

const store =  new Vuex.Store({
	state,
	mutations
})
export default store